package com.yc.cloudvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LYYT
 * @since 2022-08-03
 */
@TableName("store_user")
public class StoreUser implements Serializable {

    @TableField(exist = false)
    Store store;

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    private Long cid;

    private Long uid;

      /**
     * 1拥有者 2管理员  3普通用户 4收藏用户
     */
      private Boolean level;

    
    public Long getId() {
        return id;
    }

      public void setId(Long id) {
          this.id = id;
      }
    
    public Long getCid() {
        return cid;
    }

      public void setCid(Long cid) {
          this.cid = cid;
      }
    
    public Long getUid() {
        return uid;
    }

      public void setUid(Long uid) {
          this.uid = uid;
      }
    
    public Boolean getLevel() {
        return level;
    }

      public void setLevel(Boolean level) {
          this.level = level;
      }

    @Override
    public String toString() {
        return "StoreUser{" +
              "id=" + id +
                  ", cid=" + cid +
                  ", uid=" + uid +
                  ", level=" + level +
              "}";
    }
}
